package com.chexiehui.jc.mvp.mine;

import com.chexiehui.jc.Constants;
import com.chexiehui.jc.base.BaseModel;
import com.chexiehui.jc.base.BaseView;
import com.chexiehui.jc.entity.BrandSeriesInfo;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

/**
 * @Description 品牌车系列表
 * @Auth SongJun
 * @Date 2020/05/21 00:18
 **/
public interface ChooseCarModelSeriesCovenant {

    interface View extends BaseView {
        void onGetBrandSeriesInfoSuccess(BaseModel<BrandSeriesInfo> successResult);

        void onGetBrandSeriesInfoFailure(BaseModel<Object> failureResult);

        String getBrandId();

        String getCarType();
        //能源类型[0.默认|1.汽油|2柴油|3.新能源],空就是所有
//        String getEnergy();
    }

    interface Stores {
        @FormUrlEncoded
        @POST(Constants.URL_BRAND_SERIES)
        Observable<BaseModel<BrandSeriesInfo>> getBrandSeriesInfo(
                @Field("Id") String Id,
                @Field("type") String type,
                @Field("energy") String energy);
    }

    interface Presenter {
        void getBrandSeriesInfo();
    }

}